-- GENERATED SPELL FOR [Prophet of Rhunok] --


function spell0_28442(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(49758,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28442', 603, 1)
end

function spell1_28442(pUnit, Event) --@Vicious Rend,n/a--
pUnit:FullCastSpellOnTarget(16095,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28442', 15000, 1)
end

function Sorts_28442(pUnit, Event)
local choix_sorts_28442 = math.random(0, 1)
if choix_sorts_28442 == 0 then
pUnit:RegisterEvent('spell0_28442', 1, 1)
end
if choix_sorts_28442 == 1 then
pUnit:RegisterEvent('spell1_28442', 1, 1)
end
end

function mob28442_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28442', math.random(1500, 3000), 1)
end

function mob28442_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28442_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28442_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28442, 1, 'mob28442_Action')
RegisterUnitEvent(28442, 2, 'mob28442_Leave')
RegisterUnitEvent(28442, 3, 'mob28442_Kill')
RegisterUnitEvent(28442, 4, 'mob28442_Die')
